<script>
  export default {
    name:'login',
    mounted(){
        /* this.$request({
            method:'get',
            url:'/login',
            data:{
                name:'jack'
            }
        }).then((res)=>{
            console.log(res);
        }) */
        this.$request.get('/login',{name:'yaoyao'}).then((res)=>{
            console.log(res);
        })
    } 
    
  }
</script>

<template>
  <h2>这是登陆页面，最后了</h2>
  <router-link to="/welcome">点我返回welcome页</router-link>
</template>

<style scoped>
a {
  color: #42b983;
}
</style>
